package com.fintech.third.model.reqlog;

import java.io.Serializable;
import java.util.Date;

import org.apache.commons.lang3.StringUtils;

public class IntDataQueryLog implements Serializable{
    /**
	 * 
	 */
	private static final long serialVersionUID = -5865825619977050694L;
	
	public IntDataQueryLog(String method,String serialNum,Date requestTime,String responseCode,String responseDetail,String channel) {
		this.method = method;
		this.serialNum = serialNum;
		this.requestTime = requestTime;
		this.responseCode = responseCode;
		this.responseDetail = responseDetail;
		//控制长度在2000以内
		if(1800 < StringUtils.length(this.responseDetail)) {
			this.responseDetail = this.responseDetail.substring(0, 1800);
		}
		this.channel = channel;
	}

	private Long id;

    private String serialNum;

    private String requestUrl;

    private String requestIp;

    private Date requestTime;

    private String method;

    private Date responseTime;

    private String responseCode;

    private String responseDetail;

    private String timeperiod;

    private String channel;

    private String swiftNumber;
    
    private String createdBy;

    private Date createdDate;

    private String updatedBy;

    private String loanId;
    private Date updatedDate;
    
    private String custIdNumber;//身份证
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getSerialNum() {
        return serialNum;
    }

    public void setSerialNum(String serialNum) {
        this.serialNum = serialNum == null ? null : serialNum.trim();
    }

    public String getRequestUrl() {
        return requestUrl;
    }

    public void setRequestUrl(String requestUrl) {
        this.requestUrl = requestUrl == null ? null : requestUrl.trim();
    }

    public String getRequestIp() {
        return requestIp;
    }

    public void setRequestIp(String requestIp) {
        this.requestIp = requestIp == null ? null : requestIp.trim();
    }

    public Date getRequestTime() {
        return requestTime;
    }

    public void setRequestTime(Date requestTime) {
        this.requestTime = requestTime;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method == null ? null : method.trim();
    }

    public Date getResponseTime() {
        return responseTime;
    }

    public void setResponseTime(Date responseTime) {
        this.responseTime = responseTime;
    }

    public String getResponseCode() {
        return responseCode;
    }

    public void setResponseCode(String responseCode) {
        this.responseCode = responseCode == null ? null : responseCode.trim();
    }

    public String getResponseDetail() {
    	if(1800 < StringUtils.length(this.responseDetail)) {
			this.responseDetail = this.responseDetail.substring(0, 1800);
		}
        return responseDetail;
    }

    public void setResponseDetail(String responseDetail) {
        this.responseDetail = responseDetail == null ? null : responseDetail.trim();
    }

    public String getTimeperiod() {
        return timeperiod;
    }

    public void setTimeperiod(String timeperiod) {
        this.timeperiod = timeperiod == null ? null : timeperiod.trim();
    }

    public String getChannel() {
        return channel;
    }

    public void setChannel(String channel) {
        this.channel = channel == null ? null : channel.trim();
    }

	public String getSwiftNumber() {
		return swiftNumber;
	}

	public void setSwiftNumber(String swiftNumber) {
		this.swiftNumber = swiftNumber;
	}

	public String getCreatedBy() {
		return createdBy;
	}

	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}

	public Date getCreatedDate() {
		return createdDate;
	}

	public void setCreatedDate(Date createdDate) {
		this.createdDate = createdDate;
	}

	public String getUpdatedBy() {
		return updatedBy;
	}

	public void setUpdatedBy(String updatedBy) {
		this.updatedBy = updatedBy;
	}

	public Date getUpdatedDate() {
		return updatedDate;
	}

	public void setUpdatedDate(Date updatedDate) {
		this.updatedDate = updatedDate;
	}

	public String getLoanId() {
		return loanId;
	}

	public void setLoanId(String loanId) {
		this.loanId = loanId;
	}

	public String getCustIdNumber() {
		return custIdNumber;
	}

	public void setCustIdNumber(String custIdNumber) {
		this.custIdNumber = custIdNumber;
	}
    
}